<cp-navbar (onClickLeft)="onClickLeft()"></cp-navbar>
<div class="error" *ngIf="error"><cp-error (reload)="handleReload()"></cp-error></div>
<div class="loading" *ngIf="loading"><cp-loading></cp-loading></div>
<div class="container" *ngIf="!error && !loading">
  <div class="list" *ngIf="list.length > 0">
    <div class="gutter"></div>
    <div
      class="item"
      *ngFor="let item of list; trackBy: trackByFn"
      routerLink="/workspace/home/activityDetail"
      [queryParams]="{ promotion: item.Promotion }"
    >
      <div class="top">
        <div class="namebox">
          <span class="type">{{ item.Category | estateActType }}</span>
          <p class="title">{{ item.Title }}</p>
        </div>
        <div class="status">{{ item.Status }}</div>
      </div>
      <p class="time">报名时间：{{ item.UpdateTime }}</p>
      <p class="estate">{{ item.ProjectName }}</p>
    </div>
  </div>
  <cp-loadmore *ngIf="list.length > 0 && !nomore"></cp-loadmore>
  <cp-nomore *ngIf="list.length > 5 && nomore"></cp-nomore>
  <div class="empty" *ngIf="list.length === 0"><cp-empty></cp-empty></div>
</div>
